﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace web7
{
    public partial class _2016020719_3_1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            HttpCookie ck_person = new HttpCookie("Name");
            ck_person.Value = TextBox1.Text;
            ck_person.Expires = DateTime.Now.AddDays(1);
            Response.Cookies.Add(ck_person);
            Server.Transfer("2016020719_3_2.aspx");
        }
    }
}